<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
  
    <link rel="stylesheet" type="text/css" href="/Public/admin/Css/bootstrap.min.css" />
     <link rel="stylesheet" type="text/css" href="/Public/admin/Css/ui.css" />
      <link rel="stylesheet" type="text/css" href="/Public/admin/Css/Admin-default.css" />
   
</head>
<body>
<div class="page-content-wrap">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="panel panel-default">
                                <div class="panel-body">
<div class="table-tools">
    <p>基本分析表</p>
    <br style="clear:both" />
</div>

<table id="questionnaire-analyze-table" class="table table-striped table-hover table-condensed datatable">
    <thead>
        <tr>
            <th>序号</th>
            <th>类型</th>
            <th>名称</th>
            <th>作答人数</th>
            <th>均分</th>
            <th>最高分</th>
            <th>最低分</th>
            <th>详情分析</th>
        </tr>
    </thead>
    <tbody>
    <?php if(is_array($questionnaires)): $i = 0; $__LIST__ = $questionnaires;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$questionnaire): $mod = ($i % 2 );++$i;?><tr>
            <td><?php echo ($i); ?></td>
            <td>
                <?php switch($questionnaire["type"]): case "survey": ?><span class="label label-danger"><i class="fa fa-tag"></i>调研卷</span><?php break;?>
                    <?php case "exam": ?><span class="label label-warning"><i class="fa fa-tag"></i>考试卷</span><?php break; endswitch;?>
            </td>
            <td><?php echo ($questionnaire["name"]); ?></td>
            <td><?php echo ($questionnaire["member_num"]); ?></td>
            <td><?php echo ($questionnaire["average"]); ?></td>
            <td><?php echo ($questionnaire["max"]); ?></td>
            <td><?php echo ($questionnaire["min"]); ?></td>
            <td>
                <a href="<?php echo U('Reply/statistic', array('questionnaireID' => $questionnaire['id']));?>" class="btn btn-default btn-rounded btn-condensed btn-sm" title="详情分析">
                    <span class="glyphicon glyphicon-list-alt"></span>
                </a>
            </td>
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
    </tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</body>
</html>